Skip to main content

All Pools

Queries all the LP reserves and shares on all the chains for the specified VLP.

query All_pools($contract: String!, $limit: Int, $offset: Int) {
vlp(contract: $contract) {
all_pools(limit: $limit, offset: $offset) {
pools {
chain_uid
pool {
reserve_1
reserve_2
lp_shares
}
}
pagination {
total_count
limit
offset
}
}
}
}

Example

curl --request POST \
--header 'content-type: application/json' \
--url 'https://testnet.api.euclidprotocol.com/graphql' \
--data '{"query":"query Vlp($contract: String!, $limit: Int, $offset: Int) {\n vlp(contract: $contract) {\n all_pools(limit: $limit, offset: $offset) {\n pools {\n chain_uid\n pool {\n reserve_1\n reserve_2\n lp_shares\n }\n }\n pagination {\n total_count\n limit\n offset\n }\n }\n }\n}","variables":{"contract":"nibi1ulj49aczcwsdk93mv0nar0c0k0ptqn9n3y6rqwaeslz5tlftlvcs5xvzxa","limit":null,"offset":null}}'

Open in Playground

Arguments

  • contract (String!): The contract address of the VLP.
  • limit (Int): Optional limit to the number of results to return.
  • offset (Int): Optional number of pools to skip before starting to return the result set. Used for pagination.

Return Fields

FieldTypeDescription
chain_uidStringThe unique identifier (UID) of the chain.
poolPoolInfoDetailed information about the pool.
total_countIntThe total number of token pairs (pools) available.
limitIntThe maximum number of pools returned per query request.
offsetIntThe number of pools to skip before starting to return the result set.

PoolInfo

FieldTypeDescription
reserve_1StringThe reserve amount of the first token.
reserve_2StringThe reserve amount of the second token.
lp_sharesStringThe number of liquidity provider shares.